package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class StatMemberDaily implements Serializable {

	private static final long serialVersionUID = 8491480980321107439L;

	//fields
	private java.lang.Integer id;
	private java.sql.Timestamp statDate;
	private java.lang.Integer free;
	private java.lang.Integer paid;
	private java.lang.Integer buyer;
	private java.lang.Integer supplier;
	private java.lang.Integer both;
	private java.lang.Integer active3;
	private java.lang.Integer active7;
	private java.lang.Integer active15;
	private java.lang.Integer active30;
	private java.lang.Integer total;
	private java.lang.Integer shop;

	//default constructor
	public StatMemberDaily() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.sql.Timestamp getStatDate() {
		return statDate;
	}
	public java.lang.Integer getFree() {
		return free;
	}
	public java.lang.Integer getPaid() {
		return paid;
	}
	public java.lang.Integer getBuyer() {
		return buyer;
	}
	public java.lang.Integer getSupplier() {
		return supplier;
	}
	public java.lang.Integer getBoth() {
		return both;
	}
	public java.lang.Integer getActive3() {
		return active3;
	}
	public java.lang.Integer getActive7() {
		return active7;
	}
	public java.lang.Integer getActive15() {
		return active15;
	}
	public java.lang.Integer getActive30() {
		return active30;
	}
	public java.lang.Integer getTotal() {
		return total;
	}
	public java.lang.Integer getShop() {
		return shop;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setStatDate(java.sql.Timestamp statDate) {
		this.statDate = statDate;
	}
	public void setFree(java.lang.Integer free) {
		this.free = free;
	}
	public void setPaid(java.lang.Integer paid) {
		this.paid = paid;
	}
	public void setBuyer(java.lang.Integer buyer) {
		this.buyer = buyer;
	}
	public void setSupplier(java.lang.Integer supplier) {
		this.supplier = supplier;
	}
	public void setBoth(java.lang.Integer both) {
		this.both = both;
	}
	public void setActive3(java.lang.Integer active3) {
		this.active3 = active3;
	}
	public void setActive7(java.lang.Integer active7) {
		this.active7 = active7;
	}
	public void setActive15(java.lang.Integer active15) {
		this.active15 = active15;
	}
	public void setActive30(java.lang.Integer active30) {
		this.active30 = active30;
	}
	public void setTotal(java.lang.Integer total) {
		this.total = total;
	}
	public void setShop(java.lang.Integer shop) {
		this.shop = shop;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof StatMemberDaily))
			return false;

		final StatMemberDaily statMemberDaily = (StatMemberDaily)other;
		if (!this.id.equals(statMemberDaily.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("StatMemberDaily[")
			.append("id=").append(id).append(", ")
			.append("statDate=").append(statDate).append(", ")
			.append("free=").append(free).append(", ")
			.append("paid=").append(paid).append(", ")
			.append("buyer=").append(buyer).append(", ")
			.append("supplier=").append(supplier).append(", ")
			.append("both=").append(both).append(", ")
			.append("active3=").append(active3).append(", ")
			.append("active7=").append(active7).append(", ")
			.append("active15=").append(active15).append(", ")
			.append("active30=").append(active30).append(", ")
			.append("total=").append(total).append(", ")
			.append("shop=").append(shop).append("]").toString();
	}
}